package com.edgar.thread.ch01;

import com.edgar.thread.annotation.GuardedBy;
import com.edgar.thread.annotation.ThreadSafe;

@ThreadSafe
public class Sequence {

	@GuardedBy("this")
	private int value;

	public synchronized int getValue() {
		return value++;
	}
}
